from Utils.router import router
from Utils.gy import kldata


@router.get('/gy/shopkl10', tags=['客流车流数据'], summary='客流排名前十店铺')
async def shopkl10():
    shopkl10name = kldata.get_Dayklname()
    shopkl10insum = kldata.get_Dayklinsum()
    shopkl = []
    shopname = []
    for i in shopkl10insum:
        ii = i[0]
        shopkl.append(ii)
    for n in shopkl10name:
        nn = n[0]
        shopname.append(nn)
    return {'shopname': shopname, 'shopkl': shopkl}
